#include<iostream>
using namespace std;

/*
    citation used as arguments of the function
    can change var value inter function operation
*/
void Mmin1(int a, int b)
{
    int temp;
    if(a>b)
    {
        temp = a;
        a = b;
        b = temp;
    }
}

void Mmin2(int &a, int &b)  // cite var a and var b
{
    int temp;
    if(a>b)
    {
        temp = a;
        a = b;
        b = temp;
    }
}

int main(void)
{
    int a=20, b=10;

    Mmin1(a, b);
    cout<<a<<" "<<b<<endl;
    Mmin2(a, b);
    cout<<a<<" "<<b<<endl;

    return 0;
}